<template>
  <vue-qr
    :text="qrcodeVal"
    :size="280"
  />
</template>
<script setup>
import { ref } from 'vue'
import vueQr from 'vue-qr/src/packages/vue-qr.vue'

const textVal = ref('今天天晴')
const qrcodeVal = ref(textVal.value)

getQrCodeClick()

function getQrCodeClick() {
    qrcodeVal.value = textVal.value
}

function getImgInfo(qrUrl) {
    // 可以根据需求进行一些处理
}
</script>


<style lang="scss" scoped>
.qr-input {
  padding: 0 19px;
  font-size: 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: none;
}
.qrcode-img {
  width: 280px;
  height: 280px;
  margin: 175px auto 0;
  border-radius: 24px;
  overflow: hidden;
  img {
    display: block;
    width: 100%;
    height: 100%;
  }
}
</style>
